#include<bits/stdc++.h>

using namespace std;

class Solution {
public:
    string interpret(string command) {
        string res;
        
        for (int i = 0; i < command.size(); i++)
        {
            if (command[i] == 'G')
            {
                res.push_back('G');
            }
            if (i<command.size()-1&&command[i] == '(' && command[i + 1] == ')')
            {
                res.push_back('o');
            }
            if (i<command.size()-3&&command[i] == '(' && command[i + 1] == 'a' && command[i + 2] == 'l' && command[i + 3] == ')')
            {
                res.append("al");
            }
        }

        return res;
    }
};